﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using PicturePortfolio.ServiceReference;
using Caliburn.Micro;
namespace PicturePortfolio.Silverlight.ViewModels
{
    public class IndividualCommentViewModel:PropertyChangedBase
    {
        private PublicComment _comment;
        public IndividualCommentViewModel(PublicComment comment)
        {
            _comment = comment;
            this.UserName = _comment.UserName;
            this.UserComment = _comment.Comment;
        }

        private string _userName;
        public string UserName 
        {
            get { return _userName; }
            set
            {
                _userName = value;
                NotifyOfPropertyChange(() => UserName);
            }
        }

        private string _userComment;
        public string UserComment
        {
            get { return _userComment; }
            set
            {
                _userComment = value;
                NotifyOfPropertyChange(() => UserComment);
            }
        }
        private DateTime _commentDate;
        public DateTime CommentDate
        {
            get { return _commentDate; }
            set
            {
                _commentDate = value;
                NotifyOfPropertyChange(() => CommentDate);
            }
        }
    }
}
